* {
    padding: 0;
    margin: 0;
    user-select: none;
}

body {
    display: flex;
    height: 100vh;
    width: 100vw;
    justify-content: center;
}

aside {
    position: absolute;
    left: 2vmin;
    top: 0;
}

footer {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    padding: .6em;
    backdrop-filter: blur(1em);
}

button[id="open_btn"],
button[id="pic_btn"],
button[id="video_btn"],
button[id="next_btn"],
button[id="last_btn"],
button[id="login_btn"],
button[id="lock"] {
    padding: .3em 1em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    cursor: pointer;
    background-color: #dff4e0;
    color: green;
    border: .1em solid #45ad48;
    border-radius: .3em;
}

button[id="lock"] {
    background-color: lemonchiffon;
    color: tomato;
    border: .1em solid sandybrown;
}

button[id="open_btn"]:hover,
button[id="pic_btn"]:hover,
button[id="video_btn"]:hover,
button[id="next_btn"]:hover,
button[id="last_btn"]:hover,
button[id="login_btn"]:hover {
    background-color: #45ad48;
    color: white;
    -webkit-transition-duration: .6s;
    transition-duration: .6s;
}



button[id="login_btn"]:active,
button[id="lock"]:active {
    background-color: green;
    color: white;
    -webkit-transition-duration: .1s;
    transition-duration: .1s;
}

button[id="lock"]:disabled {
    background-color: #eee;
    color: #aaa;
    border: .1em solid #999;
}

article {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.ua {
    display: flex;
    flex-wrap: wrap;
    /* align-content: flex-end; */
    width: 80vmin;
}

.us_title {
    width: 100%;
}

.ua input {
    width: 100%;
}

.ua,
img {
    width: 96vmin;
    height: 96vmin;
    border-radius: 48vmin;
    border: 3px solid #eee;
    /*transform:rotate(90deg);*/
}

.ua {
    padding: 1em 0;
    border: 0;
}

ul,
li {
    list-style: none;
    padding: 0px;
    margin: 0px;
    width: 100%;
}

ul {
    width: 92vmin;
    margin: 0 2vmin;
    padding: 2vmin 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}

li {
    display: flex;
    justify-content: space-between;
}

input {
    width: 16vmin;
    height: 12vmin;
    font-size: 4.5vmin;
    border: 0;
    border-radius: 0;
    outline: none;
    border-bottom: .1em #ccc solid;
    text-align: center;
}

input[type="submit"] {
    border: 0;
}

input[type="submit"]:active {
    border: 0;
    -webkit-transform: translateY(.3em);
    transform: translateY(.3m);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0;
}

.w1>div,
.w2>div {
    width: 100%;
    margin-right: 2vmin;
}

[name="progressBar"] {
    width: 0%;
    z-index: -1;
    height: .5vmin;
    margin: .5vmin;
    background-color: green;
    border-radius: .3em;
}

.switch {
    position: relative;
    display: inline-block;
    width: calc(7vmin + 7vmin + 2vmin);
    height: calc(7vmin + 2vmin);
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: .3vmin;
    -webkit-transition: .3s;
    transition: .3s;
    z-index: 10;
}

.slider:before {
    position: absolute;
    content: "";
    height: 7vmin;
    line-height: 7vmin;
    width: 7vmin;
    left: 1vmin;
    bottom: 1vmin;
    background-color: white;
    -webkit-transition: .12s;
    transition: .12s;
}

input:checked+.slider {
    background-color: yellowgreen;
}

input:checked+.slider:before {
    -webkit-transform: translateX(7vmin);
    -ms-transform: translateX(7vmin);
    transform: translateX(7vmin);
    line-height: 7vmin;
    -webkit-transition: .3s;
    transition: .3s;
}

.slider.round {
    border-radius: 5vmin;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.slider.round:before {
    border-radius: 50%;
}

.name {
    font-size: 7vmin;
}

a,
label[for="output"] {
    width: 100%;
    padding: 2vmin;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
}

a,
label[for="water_sw1"] {
    width: 100%;
    padding: 2vmin;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
}

a,
label[for="water_sw2"] {
    width: 100%;
    padding: 2vmin;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
}


/* a:hover {
    background-color: yellowgreen;
    border-radius: .1em;
    color: white;
    -webkit-transition-duration: .6s;
    transition-duration: .6s;
} */

a:active {
    background-color: yellowgreen;
    border-radius: .1em;
    color: white;
    -webkit-transition-duration: .6s;
    transition-duration: .6s;
    transform: translateX(-.3em);
}

.ss {
    color: #ccc;
    pointer-events: none;
    cursor: default;
    opacity: 0.6;
}

.ss2 {
    color: #ccc;
    pointer-events: none;
    cursor: default;
    opacity: 0.6;
}

.ss3_1,
.ss3_2 {
    color: #ccc;
    pointer-events: none;
    cursor: default;
    opacity: 0.6;
    /* 多用户禁用 */
}

.ing {
    animation-name: light;
    animation-duration: .5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes light {
    from {
        opacity: 1;
    }
    to {
        opacity: .3;
    }
}

@media only screen and (min-aspect-ratio: 8/10) and (max-aspect-ratio: 18/10) {
    * {
        overflow: hidden;
    }
    .ua {
        display: flex;
        flex-wrap: wrap;
        align-content: space-around;
        width: 80vmin;
    }
    .us_title {
        width: 20%;
        display: flex;
        align-self: center;
    }
    .ua input {
        width: 80%;
        margin-top: 1em;
    }
    .ua,
    img {
        width: auto;
        max-width: 70vmin;
        height: 48vmin;
        min-height: 50vmin;
        min-width: 36vmin;
        border-radius: 7vmin;
        border: 3px solid #eee;
        
    }
    .ua {
        padding: .5em 0;
        border-radius: 0;
        border: 0;
    }
    ul {
        width: 70vmin;
    }
    footer {
        left: 0;
        bottom: 0;
        z-index: 1;
    }
    input {
        height: 8vmin;
    }
    .us_title {
        font-size: 3vmin;
    }
    input[type="submit"] {
        width: 100%;
    }
    .switch {
        width: calc(4vmin + 4vmin + 2vmin);
        height: calc(4vmin + 2vmin);
    }
    .slider:before {
        height: 4vmin;
        line-height: 4vmin;
        width: 4vmin;
        left: 1vmin;
        bottom: 1vmin;
    }
    input:checked+.slider:before {
        -webkit-transform: translateX(4vmin);
        -ms-transform: translateX(4vmin);
        transform: translateX(4vmin);
        line-height: 4vmin;
    }
    .slider.round {
        box-shadow: none;
    }
    .name {
        font-size: 4vmin;
    }
}